<?php


namespace dsp\chainOfResponsibility\handler;

use dsp\chainOfResponsibility\AbstractHandler;

class MonkeyHandler extends AbstractHandler
{

    public function handle(string $req)
    {
        if ($req === 'Banana') {
            return "Monkey: I'll eat the " . $req . PHP_EOL;
        }
        return parent::handle($req);
    }

}